<template>
  <footer>
    <ul>
      <router-link to="/films" custom v-slot="{navigate,isActive}">
        <li @click="navigate" :class="isActive?'inb':''" class="iconfont icon-dianying">电影
        </li>
      </router-link>
      <router-link to="/cinemas" custom v-slot="{navigate,isActive}">
        <li @click="navigate" :class="isActive?'inb':''" class="iconfont icon-yingyuan">影院
        </li>
      </router-link>
      <router-link to="/center" custom v-slot="{navigate,isActive}">
        <li @click="navigate" :class="isActive?'inb':''" class="iconfont icon-wode">我的
        </li>
      </router-link>
    </ul>
  </footer>
</template>

<script>

export default {
  name: 'tab',

}
</script>

<style scoped lang="scss">
footer{
  z-index: 5;
  position: fixed;
  bottom: 0;
  height: 3rem;
  background-color: whitesmoke;
  @media screen and (min-width: 480px) {
    height: 1rem;
  }
  width: 100%;
  border-top: 1px solid black;
  ul{
    cursor: pointer;
    display: flex;
    li{

      flex: 1;
      text-align: center;
      line-height: 3rem;
      @media screen and (min-width: 480px) {
        line-height: 1rem;
      }
    }
  }
}

</style>
